package com.uzai.console.service.feign;

import com.uzai.console.common.UzaiRespVo;
import com.uzai.console.dto.remoteapi.CashierAuthpayContentDto;
import com.uzai.console.service.feign.impl.UzaiImClientFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 账房
 * @Auther: liuqi
 * @Date: 2021/11/24 16:22
 * @Description:
 */
@Component
@FeignClient(value = "uzai-cashier-admin", fallbackFactory = UzaiImClientFeignFallbackFactory.class)
public interface UzaiCashierAdminFeignService {

    /**
     * 账房查询支付链接接口
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param cashierAuthpayContentDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.String>
     */
    @PostMapping("/get/cashier/authpay/content")
    UzaiRespVo<String> getCachierAuthpayContent(@RequestBody CashierAuthpayContentDto cashierAuthpayContentDto);

    /**
     * 账房查询支付链接接口
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param cashierAuthpayContentDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.String>
     */
    @PostMapping("/cc/alipay/recharges/getbody")
    UzaiRespVo<String> alipayRechargesGetbody(@RequestBody CashierAuthpayContentDto cashierAuthpayContentDto);

}
